import request from "../request.js";

var api = '/novel'
export function getCaptcha(){
    return request({
        url:api+'/api/auth/captcha',
        method:'GET',
        params:{}
    })
}

export function login(data){
    return request({
        url:api+'/api/auth/token',
        method:'POST',
        data
    })
}